<?php

declare(strict_types=1);

namespace App\CustHub\Mapper;

use App\CustHub\Model\ChConfigGroup;
use Mine\Abstracts\AbstractMapper;

class ChConfigGroupMapper extends AbstractMapper
{
    public function assignModel()
    {
        $this->model = ChConfigGroup::class;
    }


    public function findByCode(string $code)
    {
        return $this->model::query()->where('code',$code)->first();
    }
}